package Fruit;

public class FruitTest {

    public static void main(String[] args) {
        Fruit apple = new Apple();
        apple.setName("苹果");
        apple.setPrice(3);
        apple.setArea("云南...");
        System.out.println(apple.toString());

        Fruit pear = new Pear();
        pear.setName("梨");
        pear.setPrice(3);
        pear.setArea("云南...");
        System.out.println(pear.toString());

        Fruit watermelon = new Watermelon();
        watermelon.setName("西瓜");
        watermelon.setPrice(10);
        watermelon.setArea("云南...");
        System.out.println(watermelon.toString());
    }
}